__all__ = ['outer_groupbox_style','inner_groupbox_style','app_global_style','global_label_style']

# 样式表
outer_groupbox_style = """
    QGroupBox {
        font-size: 24px;
        font-weight: bold;
        border: 2px solid #4CAF50;
        border-radius: 10px;
        margin-top: 10px;
        /* 半透明白色背景 */
        background-color: rgba(255,255,255,120);
    }
    QGroupBox::title {
        subcontrol-origin: margin;
        left: 10px;
        padding: 0 5px 0 5px;
    }
"""

inner_groupbox_style = """
    QGroupBox {
        font-size: 22px;
        font-weight: bold;
        border: 2px dashed #4CAF50;
        border-radius: 10px;
        margin-top: 10px;
        /* 更加透明 */
        background-color: rgba(255,255,255,80);
    }
    QGroupBox::title {
        subcontrol-origin: margin;
        left: 10px;
        padding: 0 5px 0 5px;
    }
"""

# 1) 主窗口背景图 + 全局字体
# 2) 按钮颜色：绿色,文字白色
# 3) QComboBox 居中对齐
app_global_style = """
    QMainWindow {
        background-image: url(images/assets/background.png);
        background-repeat: no-repeat;
        background-position: center;
    }
    QWidget {
        font-family: "Microsoft YaHei", "Calibri"; /* 中英字体 */
        font-size: 22px;
    }
    QPushButton {
        background-color: #4CAF50;  /* 绿色 */
        color: white;               /* 字体白色 */
        border-radius: 6px;
        padding: 6px 12px;
        font-family: "Microsoft YaHei", "Calibri";
    }
    QPushButton:hover {
        background-color: #45A049;
    }
    QPushButton:pressed {
        background-color: #5CBF60;
    }
    QComboBox {
        font-size: 22px;
        font-family: "Microsoft YaHei", "Calibri";
    }
"""

# 让无图片时背景透明 + 边框
global_label_style = """
    background-color: rgba(0,0,0,0); /* 完全透明 */
    border: 1px dashed #ccc;
"""